//
//  EMContactsUtil.h
//  em
//
//  Created by zh on 2019/2/21.
//  Copyright © 2019 123. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ContactsUI/ContactsUI.h>

@interface EMContactsModel : NSObject<YYModel>

/**姓名  */
@property (copy, nonatomic) NSString *contactName;
/**联系方式  */
@property (strong, nonatomic) NSArray *contactMobile;
/**联系地址  */
@property (strong, nonatomic) NSArray *contactAddress;
/**公司  */
@property (strong, nonatomic) NSArray *contactCompanyName;

+ (nullable instancetype)contactModelWith:(CNContact *)contact;

@end


@interface EMContactsUtil : NSObject<NSCopying>

+ (instancetype)sharedInstance;

- (void)getUserContacts:(void(^)(NSMutableArray<EMContactsModel *> *contacts))success failed:(void(^)(NSError *error,CNAuthorizationStatus status))failed;


@end
